package com.qing.library_manager.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.FileFilter;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.logging.FileHandler;

@Data
@ApiModel(value = "tb_readers_book对象",description = "图书借阅信息表")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("tb_readers_book")
public class Borrow {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "")
    private String readersId;

    @TableId
    @ApiModelProperty(value = "")
    private String bookId;

    @ApiModelProperty(value = "")
    private String borrowShowId;

    @ApiModelProperty(value = "")
    private String borrowReturn;

    @ApiModelProperty(value = "")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime bookBorrow;

    @ApiModelProperty(value = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime bookReturn;

    @ApiModelProperty(value = "")
    private String borrowInfoStatus;

}
